package com.huaxin.common.Entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/12/22.
 */

public class FeedBack  implements Parcelable{
    int id;
    String stationCode;
    String stationName;
    String address;
    String des;
    String[] imgNames;
    long createDate;
    String creator;
    int type;
    int backState;
    int workTaskId;
    String deviceCode;

    public int getId() {
        return id;
    }

    public String getStationCode() {
        return stationCode;
    }

    public String getStationName() {
        return stationName;
    }

    public String getAddress() {
        return address;
    }

    public String getDes() {
        return des;
    }

    public String[] getImgNames() {
        return imgNames;
    }

    public long getCreateDate() {
        return createDate;
    }

    public String getCreator() {
        return creator;
    }

    public int getType() {
        return type;
    }

    public int getBackState() {
        return backState;
    }

    public int getWorkTaskId() {
        return workTaskId;
    }

    protected FeedBack(Parcel in) {
        id = in.readInt();
        stationCode = in.readString();
        stationName = in.readString();
        address = in.readString();
        des = in.readString();
        imgNames = in.createStringArray();
        createDate = in.readLong();
        creator = in.readString();
        type = in.readInt();
        backState = in.readInt();
        workTaskId = in.readInt();
        deviceCode = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(stationCode);
        dest.writeString(stationName);
        dest.writeString(address);
        dest.writeString(des);
        dest.writeStringArray(imgNames);
        dest.writeLong(createDate);
        dest.writeString(creator);
        dest.writeInt(type);
        dest.writeInt(backState);
        dest.writeInt(workTaskId);
        dest.writeString(deviceCode);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<FeedBack> CREATOR = new Creator<FeedBack>() {
        @Override
        public FeedBack createFromParcel(Parcel in) {
            return new FeedBack(in);
        }

        @Override
        public FeedBack[] newArray(int size) {
            return new FeedBack[size];
        }
    };
}
